import 'dart:core';

import 'package:flutter/material.dart';

class DlgStyle {
  late Color okColor;
  late Color cancelColor;

  DlgStyle({
    this.okColor = Colors.blue,
    this.cancelColor = Colors.grey,
  });
}

abstract class BaseStyleWidget extends StatelessWidget {
  final String? title; //标题
  final String? subTitle; //子标题
  final String? content; //内容
  final Widget? contentWidget; //内容部分,优先使用`content`字符串来显示
  final Function()? onCancelTap;
  final Function()? onOkTap;
  final Function()? onCloseTap;
  final String cancelText;
  late Color? cancelColor;
  final String okText;
  final Widget? okWidget;
  late Color? okColor;
  final String? tag;
  final bool isSingleBtn;
  final bool showCloseBtn;
  final TextAlign titleTextAlign;
  final TextAlign contentTextAlign;
  final bool isTapBtnDismiss;

  BaseStyleWidget({
    super.key,
    this.title,
    this.subTitle, //子标题
    this.content, //内容
    this.contentWidget, //内容部分,优先使用`content`字符串来显示
    this.onCancelTap,
    this.onOkTap,
    this.onCloseTap,
    this.cancelText = '取消',
    this.cancelColor,
    this.okText = '确定',
    this.okColor,
    this.tag,
    this.isSingleBtn = false,
    this.showCloseBtn = true,
    this.titleTextAlign = TextAlign.center,
    this.contentTextAlign = TextAlign.center,
    this.isTapBtnDismiss = true,
    this.okWidget,
  });
}
